package com.rc.saas.mini.mapper.market;

import com.rc.saas.mini.common.base.BaseMapper;
import com.rc.saas.mini.model.market.MarketActivity;
import com.rc.saas.mini.model.market.MarketActivityExample;
import com.rc.saas.mini.vo.market.MarketActivityVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface MarketActivityMapper extends BaseMapper<Long, MarketActivity, MarketActivityExample> {
    List<MarketActivityVo> listByTenant(@Param("tenantCode") String tenantCode, @Param("sendType") String sendType, @Param("activityType") String activityType);


    List<MarketActivity> listCurrentActivity(@Param("tenantCode") String tenantCode, @Param("sendType") String sendType, @Param("rewardType") String rewardType,
                                             @Param("activityType") String activityType);

    List<MarketActivity> listActivityRuleWithGive(@Param("activityIndex")String activityIndex,@Param("tenantCode")String tenantCode,@Param("memberId")Long memberId);
    List<MarketActivity> listActivityRuleWithGiveJoin(@Param("activityIndex")String activityIndex,@Param("tenantCode")String tenantCode,@Param("memberId")Long memberId);
}